package com.cn.lottery.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cn.lottery.domain.LotteryDO;
import com.cn.lottery.domain.LotteryPersionDO;
import com.cn.lottery.domain.PersionLotterVO;
import com.cn.lottery.domain.PrizeDO;
import com.cn.lottery.domain.TimeSettingDO;
import com.cn.lottery.domain.UsersDO;

public interface LotteryDao {

	public int insertPersion(LotteryPersionDO lotteryDo);
	
	public List<LotteryDO> searchList(@Param("timeIndex")Integer timeIndex);
	
	public int insertUsers(UsersDO user);
	
	public List<UsersDO> searchUsers(UsersDO user);
	
	public  List<TimeSettingDO> searchTimeSetting();
	
	public List<PersionLotterVO> searchLottery(UsersDO user);
	
	public List<PrizeDO> searchPrize(@Param("timeIndex")Integer timeIndex);
	
	public void createPrize(@Param("timeIndex")Integer timeIndex);
	
	public int updatePrize(PrizeDO prize);
}
